<!DOCTYPE HTML>
<html>
    <title>看板娘测试</title>
<body>



<script src="./L2Dwidget.min.js"></script>
<script>
    var jsonModels = [
    {path:"{$domain}public/{$template}/js/live2d-widget-models/live2d-widget-model-chitose/assets/chitose.model.json",width:165,height:190},
    {path:"{$domain}public/{$template}/js/live2d-widget-models/live2d-widget-model-epsilon2_1/assets/Epsilon2.1.model.json",width:165,height:260},
    // {path:"{$domain}public/{$template}/js/live2d-widget-models/live2d-widget-model-gf/assets/Gantzert_Felixander.model.json",width:165,height:360},
    {path:"{$domain}public/{$template}/js/live2d-widget-models/live2d-widget-model-haru/01/assets/haru01.model.json",width:165,height:430},
    {path:"{$domain}public/{$template}/js/live2d-widget-models/live2d-widget-model-haru/02/assets/haru02.model.json",width:165,height:410},
    {path:"{$domain}public/{$template}/js/live2d-widget-models/live2d-widget-model-haruto/assets/haruto.model.json",width:165,height:200},
    {path:"{$domain}public/{$template}/js/live2d-widget-models/live2d-widget-model-hibiki/assets/hibiki.model.json",width:165,height:360},
    {path:"{$domain}public/{$template}/js/live2d-widget-models/live2d-widget-model-hijiki/assets/hijiki.model.json",width:165,height:170},
    {path:"{$domain}public/{$template}/js/live2d-widget-models/live2d-widget-model-izumi/assets/izumi.model.json",width:165,height:200},
    {path:"{$domain}public/{$template}/js/live2d-widget-models/live2d-widget-model-koharu/assets/koharu.model.json",width:165,height:200},
    {path:"{$domain}public/{$template}/js/live2d-widget-models/live2d-widget-model-miku/assets/miku.model.json",width:165,height:230},
    {path:"{$domain}public/{$template}/js/live2d-widget-models/live2d-widget-model-nico/assets/nico.model.json",width:165,height:170},
    {path:"{$domain}public/{$template}/js/live2d-widget-models/live2d-widget-model-nietzsche/assets/nietzche.model.json",width:165,height:170},
    {path:"{$domain}public/{$template}/js/live2d-widget-models/live2d-widget-model-ni-j/assets/ni-j.model.json",width:165,height:170},
    {path:"{$domain}public/{$template}/js/live2d-widget-models/live2d-widget-model-nipsilon/assets/nipsilon.model.json",width:165,height:170},
    {path:"{$domain}public/{$template}/js/live2d-widget-models/live2d-widget-model-nito/assets/nito.model.json",width:165,height:170},
    {path:"{$domain}public/{$template}/js/live2d-widget-models/live2d-widget-model-shizuku/assets/shizuku.model.json",width:165,height:310},
    {path:"{$domain}public/{$template}/js/live2d-widget-models/live2d-widget-model-tororo/assets/tororo.model.json",width:165,height:180},
    {path:"{$domain}public/{$template}/js/live2d-widget-models/live2d-widget-model-tsumiki/assets/tsumiki.model.json",width:165,height:250},
    {path:"{$domain}public/{$template}/js/live2d-widget-models/live2d-widget-model-unitychan/assets/unitychan.model.json",width:165,height:170},
    {path:"{$domain}public/{$template}/js/live2d-widget-models/live2d-widget-model-wanko/assets/wanko.model.json",width:165,height:160},
    {path:"{$domain}public/{$template}/js/live2d-widget-models/live2d-widget-model-z16/assets/z16.model.json",width:165,height:280},
    ];
    var jsonModel = jsonModels[Math.floor(Math.random()*((jsonModels.length-1)-0+1))+0];
    // var jsonModel = jsonModels[20];
    L2Dwidget.init({ 
        "model": { 
            // 生成min~max的随机整数公式：Math.floor(Math.random()*(max-min+1))+min
            "jsonPath": jsonModel.path,
            "scale": 1 
        }, 
        "display": { 
            "position": "right", // 位置left、right
            "width": jsonModel.width, // 宽度
            "height": jsonModel.height, // 高度
            "hOffset": 10, // 横向边距
            "vOffset": 0 // 众向边距
        }, 
        "mobile": { 
            "show": false // 手机是否显示
        },
        "dialog": {
            // 开启对话框
            enable: true,
            script: {
              // 每空闲 10 秒钟，显示一条一言
              'every idle 10s': '$hitokoto$',
              // 触摸网页
              'hover .adsbygoogle': '客官点一下广告嘛，人家好几天没吃东西了 (*/ω＼*)',
              'hover pre': '点击代码块右上角的【复制】可以快速复制代码哦 (*/ω＼*)',
              'hover .reward': '人家需要你的打赏 (*/ω＼*)',
              'hover .glyphicon-comment': '快去看看评论吧 (*/ω＼*)',
              'hover .weidenglu': '等你来登录哟，宝宝！ (*/ω＼*)',
              'hover .breadcrumb': '导航栏，谢谢！ (*/ω＼*)',
              'hover #zan': '好看就赞一下吧 (*/ω＼*)',
              'hover #back_to_top_goto_top': '返回页面顶部 (*/ω＼*)',
              'hover #daohangcaidan': '精选栏目哟！ (*/ω＼*)',
              'hover .navbar-header': '点logo可以回到主页去哟 (*/ω＼*)',
              'hover input[name="keyword"]': '输入关键字搜索试试 (*/ω＼*)',
              // 当触摸到角色身体
              'tap body': '哎呀！别碰我！',
              // 当触摸到角色头部
              'tap face': '人家已经不是小孩子了！'
            }
        }
    });
</script>

</body>
</html>